package io.renren.modules.app.controller;


import io.renren.common.utils.R;
import io.renren.modules.app.annotation.Login;
import io.renren.modules.app.annotation.LoginUser;
import io.renren.modules.app.entity.EncryptMessage;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.utils.WecomUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * 企业微信
 */
@RestController
@RequestMapping("/app/wecom")
@Api("APP测试接口")
public class AppWecomController {


    @PostMapping("getDecryptMessage")
    @ApiOperation("获取企业微信解密后的用户会话记录")
    public R notToken(@RequestBody EncryptMessage encryptMessage){
        return R.ok(WecomUtils.getDecryptMessage(encryptMessage.getEncryptMessage()));
    }

}
